A better build fix for 2.4.
O_TARGET := kernel.o
-export-objs := i386_ksyms.o evtchn.o
+export-objs := i386_ksyms.o
obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o \
ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o \
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
+#include <linux/version.h>
#include <asm/atomic.h>
#include <asm/system.h>
#include <asm/ptrace.h>
local_irq_restore(flags);
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
EXPORT_SYMBOL(evtchn_do_upcall);
+#endif
static int find_unbound_irq(void)
{